package com.letoken.platform.repo.admin.req.config;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @author wyl
 * @date 2022/12/10
 */
@Data
@ApiModel(value = "添加闪兑配置请求对象", description = "添加闪兑配置请求对象")
public class AddQuickswapConfigReq {

    @NotBlank(message = "代币id不能为空")
    @ApiModelProperty(name = "tokenId", value = "代币id", required = true)
    private Integer tokenId;

    @NotNull(message = "价格不能为空")
    @ApiModelProperty(name = "price", value = "代币价格")
    private BigDecimal price;

    @Range(min = 1,max = 1000000,message = "最小闪兑数量 范围1-1000000")
    @NotNull(message = "最小闪兑数量不能为空")
    @ApiModelProperty(name = "minSwapCount", value = "最小闪兑数量")
    private Integer minSwapCount;

    @Range(min = 1,max = 1000000,message = "最大闪兑数量 范围1-10000000")
    @NotNull(message = "最大闪兑数量不能为空")
    @ApiModelProperty(name = "maxSwapCount", value = "最大闪兑数量")
    private Integer maxSwapCount;

}
